﻿@{
    ViewData["Title"] = "用户表创建界面";
    Layout = null;
}
<input type="hidden" id="uuid" name="id">


<div data-toggle="topjui-layout" data-options="fit:true">
    <div data-options="region:'center',title:'',fit:true,border:false,bodyCls:'border_right_bottom'">
        <div data-toggle="topjui-tabs" data-options="fit:true,border:false">
            <div title="@L("基本信息")" data-options="iconCls:'fa fa-th'">
                <div class="topjui-fluid">
                    <fieldset>
                        <legend>@L("基本信息")</legend>
                    </fieldset>
                    @*<div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("所属机构(数)")</label>
                                <div class="topjui-input-block">
                                    <input type="hidden" id="myFormbuUnitNewName" name="buUnitNewName" />
                                    <input id="myFormBuUnitNewGUID" type="text" name="buUnitNewGUID" data-toggle="topjui-combobox"
                                           data-options="required:false,
                                    editable: true,
                                    valueField:'id',
                                    textField:'text',
                                    loader: $.loader.comboxLoader,
                                    mode: 'remote',
                                    queryParams:
                                    {
                                        viewName:'View_FW_buUnitNew',
                                        comBoxValueName:'buUnitNewName',
                                        initQuery:$('#myFormbuUnitNewName').val()
                                    }">
                                </div>
                            </div>
                        </div>*@

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("用户编码")</label>
                            <div class="topjui-input-block">
                                <input id="myFormUserCode" type="text" name="userCode" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row" id="divMyFormUserPassword">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("用户密码")</label>
                            <div class="topjui-input-block">
                                <input id="myFormUserPassword" type="text" name="userPassword" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("用户名称")</label>
                            <div class="topjui-input-block">
                                <input id="myFormUserName" type="text" name="userName" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("组织机构")</label>
                            <div class="topjui-input-block">
                                <input type="text" name="buUnitNewGUIDs" id="myFormBuUnitNewGUIDs"
                                       data-toggle="topjui-combotree"
                                       data-options="required:false,
                       prompt:'@L("组织机构")',
                       multiple:true,
                       textField:'text',
                       onlyLeafCheck:true,
                       textField:'text',
                       expandAll:true,
                        url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_FW_BuUnit&nodeName=BuUnitName',
                        expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_FW_BuUnit&nodeName=BuUnitName',
                       onBeforeSelect: function (node) {
                         var opts = $(this).iTree('options');
                         if (opts.onlyLeafCheck) {
                            // 判断是否是叶子节点
                             var isLeaf = $(this).iTree('isLeaf', node.target);
                            if (!isLeaf) {
                                // 返回false表示取消本次选择操作
                                return false;
                            }
                         }
                       },
                       icons:[{
                            iconCls:'fa fa-remove',
                            handler: function(e){
                                $(e.data.target).iCombotree('clear');
                            }
                        }],
                        iconWidth:22 ">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("所属角色")</label>
                            <div class="topjui-input-block">
                                <input type="text" name="standardRoleGUIDs" id="myFormStandardRoleGUIDs"
                                       data-toggle="topjui-combotree"
                                       data-options="required:false,
                       prompt:'@L("所属角色")',
                       id:'myFormStandardRoleGUIDs',
                       multiple:true,
                       textField:'text',
                       onlyLeafCheck:true,
                       textField:'text',
                        url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_FW_StandardRole&nodeName=StandardRoleName',
                        expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_FW_StandardRole&nodeName=StandardRoleName',
                       expandAll:true,
                       onBeforeSelect: function (node) {
                         var opts = $(this).iTree('options');
                         if (opts.onlyLeafCheck) {
                            // 判断是否是叶子节点
                             var isLeaf = $(this).iTree('isLeaf', node.target);
                            if (!isLeaf) {
                                // 返回false表示取消本次选择操作
                                return false;
                            }
                         }
                       },
                       icons:[{
                            iconCls:'fa fa-remove',
                            handler: function(e){
                                $(e.data.target).iCombotree('clear');
                            }
                        }],
                        iconWidth:22">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("是否租户主账户")</label>
                            <div class="topjui-input-block">
                                <div data-toggle="topjui-radio">
                                    <input id="myFormUserIsMainAccountUser1" type="radio" name="isMainAccountUser" value="1" label="@L("是")">
                                    <input id="myFormUserIsMainAccountUser2" type="radio" name="isMainAccountUser" value="0" label="@L("否")" checked="checked">
                                </div>
                            </div>
                        </div>
                    </div>
                    @*<div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("电子邮件")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserEmail" type="text" name="userEmail" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("办公电话")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserOfficePhone" type="text" name="userOfficePhone" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("移动电话")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserMobilePhone" type="text" name="userMobilePhone" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("家庭电话")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserHomePhone" type="text" name="userHomePhone" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("域账号")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserADAccount" type="text" name="userADAccount" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("是否禁用")</label>
                                <div class="topjui-input-block">
                                    <div data-toggle="topjui-radio">
                                        <input id="myFormUserIsDisabeld1" type="radio" name="userIsDisabeld" value="1" label="@L("是")">
                                        <input id="myFormUserIsDisabeld2" type="radio" name="userIsDisabeld" value="0" label="@L("否")" checked="checked">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("禁用原因")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserDisabledReason" type="text" name="userDisabledReason" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("是否管理员")</label>
                                <div class="topjui-input-block">
                                    <div data-toggle="topjui-radio">
                                        <input id="myFormUserIsAdmin1" type="radio" name="userIsAdmin" value="1" label="@L("是")">
                                        <input id="myFormUserIsAdmin2" type="radio" name="userIsAdmin" value="0" label="@L("否")" checked="checked">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("工号")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserJobNumber" type="text" name="userJobNumber" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("是否用户修改密码")</label>
                                <div class="topjui-input-block">
                                    <div data-toggle="topjui-radio">
                                        <input id="myFormIsUserChangePWD1" type="radio" name="isUserChangePWD" value="1" label="@L("是")">
                                        <input id="myFormIsUserChangePWD2" type="radio" name="isUserChangePWD" value="0" label="@L("否")" checked="checked">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("是否锁定")</label>
                                <div class="topjui-input-block">
                                    <div data-toggle="topjui-radio">
                                        <input id="myFormUserIsLocked1" type="radio" name="userIsLocked" value="1" label="@L("是")">
                                        <input id="myFormUserIsLocked2" type="radio" name="userIsLocked" value="0" label="@L("否")" checked="checked">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("锁定时间")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserLockTime" type="text" name="userLockTime" data-toggle="topjui-datebox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("职务")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormPUserosition" type="text" name="pUserosition" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("是否正式编制")</label>
                                <div class="topjui-input-block">
                                    <div data-toggle="topjui-radio">
                                        <input id="myFormIsFormalEstablishment1" type="radio" name="isFormalEstablishment" value="1" label="@L("是")">
                                        <input id="myFormIsFormalEstablishment2" type="radio" name="isFormalEstablishment" value="0" label="@L("否")" checked="checked">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("上次IP地址")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormLastIpAdress" type="text" name="lastIpAdress" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("用户图像url(上传图片)")</label>
                                <div class="topjui-input-block">
                                    <input type="text" id="myFormUserImageUrl" name="userImageUrl"  data-toggle="topjui-uploadbox"
                                           data-options="editable:false,
                                                       buttonText:'上传图片',
                                                       accept:'images',
                                                       uploadUrl:'/api/services/app/File/UploadFile?type=FW_User',
                                                       success:function(result){
                                                            $('#' + this.id).textbox('setValue', result)
                                                        }">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("原图像url(上传图片)")</label>
                                <div class="topjui-input-block">
                                    <input type="text" id="myFormUserPreImageUrl" name="userPreImageUrl"  data-toggle="topjui-uploadbox"
                                           data-options="editable:false,
                                                       buttonText:'上传图片',
                                                       accept:'images',
                                                       uploadUrl:'/api/services/app/File/UploadFile?type=FW_User',
                                                       success:function(result){
                                                            $('#' + this.id).textbox('setValue', result)
                                                        }">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("登录失败次数")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormLoginErrorCount" type="text" name="loginErrorCount" data-toggle="topjui-numberbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("上一次登录失败原因")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormLastLoginErrorTime" type="text" name="lastLoginErrorTime" data-toggle="topjui-datebox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("密码修改时间")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormPasswordModifyTime" type="text" name="passwordModifyTime" data-toggle="topjui-datebox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("登录时间")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormLoginTime" type="text" name="loginTime" data-toggle="topjui-datebox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("用户ID自增长")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserIntID" type="text" name="userIntID" data-toggle="topjui-numberbox" data-options="required:false">
                                </div>
                            </div>
                        </div>

                        <div class="topjui-row">
                            <div class="topjui-col-sm12">
                                <label class="topjui-form-label">@L("用户签名")</label>
                                <div class="topjui-input-block">
                                    <input id="myFormUserSign" type="text" name="userSign" data-toggle="topjui-textbox" data-options="required:false">
                                </div>
                            </div>
                        </div>*@


                </div>
            </div>
            @*<div title="@L("选填信息")" data-options="iconCls:'fa fa-th'">
                    <div class="topjui-fluid">
                        <fieldset>
                            <legend>@L("扩展信息")</legend>
                        </fieldset>
                    </div>
                </div>*@
        </div>
    </div>
</div>

